#include "database.h"
#include "handleCommand.h"
#include "taskQueue.h"
#include "threadPool.h"
#include "timingWheel.h"
#ifndef __DETACHCOMMAND_H__
#define __DETACHCOMMAND_H__

int getusername(const char* id,char* username); //根据返回的id,获取username;
int business(task_t* ptask,MYSQL* mysql);    //线程池的业务
int handlePutsAndGets(cmdShare_t* pCmdShare,const char* command);

int commandDetach(int netfd,int epfd,MYSQL* mysql,redisContext* redis,cmdShare_t* netfdToPcmd[],threadPool_t* pthreadPool,timeoutShare_t* pTimeoutShare); 



#endif
